var vm1 = new Vue({
    el: '#app1',
    data: {
        islogin: false,
        username: '',
        name: ''
    },
    computed: {

    },
    created() {
        this.username = window.localStorage.getItem('username')
        if (this.username) {
            this.islogin = true
        }
    },
    methods: {
        logout() {
            window.localStorage.clear()
            window.location.href = 'home.html'
        },
        search() {
            console.log(this.name);
            window.localStorage.setItem("goodName",this.name)
            window.location.href = 'search.html'
        }
    }
})